package com.example.newsbackgroundmanagement.mapper;

import com.example.newsbackgroundmanagement.entity.Releasenews;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 邓旭波
 * @since 2023-03-05
 */
public interface ReleasenewsMapper extends BaseMapper<Releasenews> {
    @Update("update releasenews set likes=#{count} where nid=#{id}")
    void SetLikesOnReleasenews(long count, Integer id);

}
